  <!-- 顶部导航栏 -->
  <nav class="navbar navbar-default navbar-fixed-top">
    <div class="container">
      <!-- Brand and toggle get grouped for better mobile display -->
      <div class="navbar-header">
        <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
          <span class="sr-only">Toggle navigation</span>
          <span class="icon-bar"></span>
          <span class="icon-bar"></span>
          <span class="icon-bar"></span>
        </button>
        <a class="navbar-brand pr-0 pt-10" href="/">
          <img src="/img/logo.png" alt="" height="30" />
        </a>
      </div>

      <!-- collapse -->
      <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
        <form class="navbar-form navbar-left form-inline" action="">
          <div class="form-group">
            <div class="input-group">
              <input type="text" class="form-control br-tl-30 br-bl-30" id="exampleInputAmount" placeholder="搜索文章、博主" />
              <div class=" input-group-addon bg-color-primary bd-color-primary br-br-30 br-tr-30 pd-0 color-white overflow-hidden">
                <button type="submit" value="GO" class="btn search-submit outline-none color-white">
                  GO
                </button>
              </div>
            </div>
          </div>
        </form>

        <ul class="nav navbar-nav navbar-right">
          <% if(!authUser) {%>
          <li><a href="/login">登录</a></li>
          <li>
            <a href="/register" class=" btn btn-default navbar-btn mr-10 br-30 pt-6 pb-6 outline-none">
              注册
            </a>
          </li>
          <% }else{ %>
          <li class="dropdown">
            <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false"><%= authUser.username %> <span class="caret"></span></a>
            <ul class="dropdown-menu">
              <li><a href="/user/<%= authUser._id %>">个人空间</a></li>
              <li><a href="/user/<%= authUser._id %>/profile">修改个人资料</a></li>
              <li role="separator" class="divider"></li>
              <li><a href="/logout">退出网站</a></li>
            </ul>
          </li>
          <%}%>


          <li>
            <a href="/post/create" class=" btn btn-primary navbar-btn br-30 pt-6 pb-6 bg-color-primary bd-color-primary outline-none color-white">
              <i class="glyphicon glyphicon-pencil mr-10"></i>写文章
            </a>
          </li>

        </ul>
      </div>
      <!-- /.navbar-collapse -->
    </div>
    <!-- /.container-fluid -->
  </nav>
  <!-- 顶部导航栏结束 -->
